﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>我的定单</title>

	<link href="css/index.css" rel="stylesheet" type="text/css" />
	<link href="css/register.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
	<%@ include file="../public/head.jsp" %>		
		<div id="hr-body">
		    <div class="hr-body-content">
			   <TABLE class=hr-body-layout width="100%">
				  <TBODY>
				  <TR>
				    <%@ include file="../public/userleft.jsp" %>
				      <TD class=hr-bl-right vAlign=top>
				      	<DIV class=MemberCenterWrap>
				      	  <div class="TableWrap MemberOrderList">
				      		<H2>欢迎进入管理菜单->定单列表</H2>
				      			<s:if test="payList.size()>0">
				      				<table class="list" cellpadding="0" cellspacing="0" width="100%">
				       				<thead>
				       					<tr>
				       						<th>定单id</th>
				       						<th>订货人</th>
				       						<th>订货名称</th>
				       						<th>会员价</th>
				       						<th>定货时间</th>
				       						<th>删除定单</th>
				       					</tr>
				       				</thead>
				       				<tbody id="user-table">
				       					<s:iterator value="payList" id="pay">
				       						<tr>
				       						<td>${pay.id} </td>
				       						<td>${pay.name}</td>
				       						<td>${pay.proname}</td>
				       						<td>${pay.memberPrice}</td>
				       						<td>${pay.pdate}</td>
				       						<td><a href="deletemypay?pid=${pay.id}">删除</a></td>
				       						</tr>
				       					</s:iterator>
				       				</tbody>
				       			</table>
				      			</s:if>
				      			<s:else>
				      			<h2>系统中没有订单</h2>
				      			</s:else>
							</div>
						</DIV>
					</TD>
				</TR>
			</TBODY>
			</TABLE>
			<%@include file="../public/bottom.jsp" %>
			</div>
		</div>
     	
		<%@ include file="../public/foot.jsp" %>
  </body>
</html>
